Interface: RequestClient
Properties
cleanup
• cleanup: (reason?: DisconnectReason) => Promise<void>
Type declaration
▸ (reason?): Promise<void>
Parameters
| Name | Type |
|---|---|
reason? | DisconnectReason |
Returns
Promise<void>
expires
• expires: number
fetcher
• fetcher: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>(input: string | URL | Request, init?: RequestInit) => Promise<Response>
Type declaration
▸ (input, init?): Promise<Response>
Parameters
| Name | Type |
|---|---|
input | URL | RequestInfo |
init? | RequestInit |
Returns
Promise<Response>
▸ (input, init?): Promise<Response>
Parameters
| Name | Type |
|---|---|
input | string | URL | Request |
init? | RequestInit |
Returns
Promise<Response>
refreshToken
• refreshToken: () => Promise<boolean>
Type declaration
▸ (): Promise<boolean>
Returns
Promise<boolean>
token
• token: string